import calendar
class group:
    #create a new group
    def __init__(self, creatorName):
        #Set the groups name
        self.name = input('Group Name: ')
        #Create a gregorian calendar for the group
        self.calendar = calendar.gregorian()
        #Define an admin for the group
        self.admins = [creatorName]
        print('Group creation success')
                
class user:
    def __init__(self, name):
        #Ask for persons name
        self.name = name
        print('User creation success')

    def joinGroup(self):
        while True:
            namePass = True
            if len(gRL) > 0:
                print('\nThis is a list of groups please choose one to join\nYou can join multiple groups by seperating them with a \', \'')
            else:
                print('There are currently no available groups, process terminating')
                return
            groupNames = []
            for i in gRL:
                print('* - ' + gRL[i].name)
                groupNames.append(gRL[i].name)
            potentialGroups = input('Group: ').split(', ')
            for potentialGroup in potentialGroups:
                if potentialGroup not in groupNames:
                    print('That group does not exist please enter a differant group')
                    namePass = False
            if namePass:
                self.groups = potentialGroups
                print('Group join success')
                break